<template>
  <div style="line-height: 34px !important;">
    <el-tag type="info" v-if="params.data.ifPermission === null">未申请</el-tag>
    <el-tag type="warning" v-if="params.data.ifPermission === '0'">待审核</el-tag>
    <el-tag type="success" v-if="params.data.ifPermission === '1'">审核通过</el-tag>
    <el-tag type="danger" v-if="params.data.ifPermission === '2'">审核驳回</el-tag>
  </div>
</template>
<script>
import Vue from 'vue'
export default Vue.extend({
  // props: ["flag"],
  data () {
    return {}
  },
  methods: {
    pass () {
      this.params.context.componentParent.pass(this.params.data, false)
    },
    noPass () {
      this.params.context.componentParent.noPass(this.params.data)
    }
  }
})
</script>
